<?php

declare(strict_types=1);

namespace App\Model;

use Hyperf\DbConnection\Model\Model;

/**
 * @property string $id id
 * @property string $ip 操作人IP
 * @property string $path 操作路径
 * @property string $method 请求方式
 * @property string $params 请求参数
 * @property string $operateId 操作人id
 * @property string $operateBefore 操作前
 * @property string $operateAfter 操作后
 * @property string $createTime 创建时间
 */
class OperateLog extends Model
{
        /**
         * 主键字段
         */
        public string $primaryKey = 'id';

        /**
         * 不自动维护时间
         * @var bool
         */
        public bool $timestamps = false;

        /**
         * The table associated with the model.
         */
        protected ?string $table = 'operate_log';

        /**
         * The attributes that are mass assignable.
         */
        protected array $fillable = [];

        /**
         * The attributes that should be cast to native types.
         */
        protected array $casts = ['id' => 'string', 'operateId' => 'string'];
}
